package com.mengyan.manage.cms.dao;

import com.mengyan.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Optional;

public interface CmsPageRepository extends MongoRepository<CmsPage, String> {
    Optional<CmsPage> findByPageName(String pageName);

    Optional<CmsPage> findByPageNameAndSiteIdAndPageWebPath(String pageName,String siteId ,String pageWebPath);

}
